CARDS 2.4.140
Package manager for the NuTyX GNU/Linux distribution
cards_argument_parser.h
1//
2// cards_argument_parser.h
3//
4// Copyright (c) 2013 - 2020 by NuTyX team (http://nutyx.org)
5//
6// This program is free software; you can redistribute it and/or modify
7// it under the terms of the GNU General Public License as published by
8// the Free Software Foundation; either version 2 of the License, or
9// (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19// USA.
20//
21
22#ifndef CARDS_ARGUMENT_PARSER_H
23#define CARDS_ARGUMENT_PARSER_H
24
25#include "argument_parser.h"
26
28{
29 public:
31 virtual ~CardsArgumentParser() {};
32
33 static ArgParser::APCmd CMD_HELP;
34 static ArgParser::APCmd CMD_CONFIG;
35 static ArgParser::APCmd CMD_BASE;
36 static ArgParser::APCmd CMD_FILES;
37 static ArgParser::APCmd CMD_SYNC;
38 static ArgParser::APCmd CMD_INFO;
39 static ArgParser::APCmd CMD_QUERY;
40 static ArgParser::APCmd CMD_LIST;
41 static ArgParser::APCmd CMD_INSTALL;
42 static ArgParser::APCmd CMD_DEPCREATE;
43 static ArgParser::APCmd CMD_CREATE;
44 static ArgParser::APCmd CMD_REMOVE;
45 static ArgParser::APCmd CMD_DIFF;
46 static ArgParser::APCmd CMD_LEVEL;
47 static ArgParser::APCmd CMD_DEPENDS;
48 static ArgParser::APCmd CMD_DEPTREE;
49 static ArgParser::APCmd CMD_SEARCH;
50 static ArgParser::APCmd CMD_PURGE;
51 static ArgParser::APCmd CMD_UPGRADE;
52
53 static ArgParser::APOpt OPT_DOWNLOAD_ONLY;
54 static ArgParser::APOpt OPT_DOWNLOAD_READY;
55 static ArgParser::APOpt OPT_NO_SYNC;
56
57 static ArgParser::APOpt OPT_CHECK;
58 static ArgParser::APOpt OPT_SIZE;
59
60 static ArgParser::APOpt OPT_FULL;
61 static ArgParser::APOpt OPT_FORCE;
62 static ArgParser::APOpt OPT_UPDATE;
63
64 static ArgParser::APOpt OPT_INSTALLED;
65 static ArgParser::APOpt OPT_BINARIES;
66 static ArgParser::APOpt OPT_PORTS;
67
68 static ArgParser::APOpt OPT_IGNORE;
69 static ArgParser::APOpt OPT_NOLOGENTRY;
70
71
72 static ArgParser::APOpt OPT_DISABLE;
73
74 static ArgParser::APOpt OPT_DRY;
75 static ArgParser::APOpt OPT_REMOVE;
76 static ArgParser::APOpt OPT_ALL;
77 static ArgParser::APOpt OPT_LEVEL_SILENCE;
78
79 static ArgParser::APOpt OPT_ROOT;
80 static ArgParser::APOpt OPT_CONFIG_FILE;
81
82 std::string getAppIdentification() const
83 {
84 return std::string("cards ") + VERSION + "\n";
85 }
86};
87
88#endif
89// vim:set ts=2 :
Definition: argument_parser.h:105
Definition: argument_parser.h:72
argument parser class
Definition: argument_parser.h:57
Definition: cards_argument_parser.h:28
std::string getAppIdentification() const
Definition: cards_argument_parser.h:82