CARDS 2.4.87
Package manager for the NuTyX GNU/Linux distribution
cards_argument_parser.h
1 //
2 // cards_argument_parser.h
3 //
4 // Copyright (c) 2013-2017 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_CHECK;
54  static ArgParser::APOpt OPT_SIZE;
55 
56  static ArgParser::APOpt OPT_FORCE;
57  static ArgParser::APOpt OPT_UPDATE;
58 
59  static ArgParser::APOpt OPT_INSTALLED;
60  static ArgParser::APOpt OPT_BINARIES;
61  static ArgParser::APOpt OPT_PORTS;
62 
63  static ArgParser::APOpt OPT_IGNORE;
64 
65  static ArgParser::APOpt OPT_DISABLE;
66 
67  static ArgParser::APOpt OPT_DRY;
68  static ArgParser::APOpt OPT_REMOVE;
69  static ArgParser::APOpt OPT_ALL;
70  static ArgParser::APOpt OPT_LEVEL_SILENCE;
71 
72  static ArgParser::APOpt OPT_ROOT;
73  static ArgParser::APOpt OPT_CONFIG_FILE;
74 
75  std::string getAppIdentification() const
76  {
77  return std::string("cards ") + VERSION + "\n";
78  }
79 };
80 
81 #endif
82 // vim:set ts=2 :
argument parser class
Definition: argument_parser.h:56
std::string getAppIdentification() const
Definition: cards_argument_parser.h:75
Definition: cards_argument_parser.h:27
Definition: argument_parser.h:71
Definition: argument_parser.h:104