Commits

Denis Khabarov  committed 2611eca

Added short args:
-w VALUE == --warning=VALUE
-c VALUE == --critical=VALUE

  • Participants
  • Parent commits 7debfb0

Comments (0)

Files changed (1)

File check_nvidia_temp.py

 Licence: GNU General Public License version 3
 You can download full text of the license on http://www.gnu.org/licenses/gpl-3.0.txt
 ''',formatter_class=argparse.RawDescriptionHelpFormatter)
-cliparser.add_argument("--warning",metavar="VALUE",help="warning temperature",required=True,type=int)
-cliparser.add_argument("--critical",metavar="VALUE",help="critical temperature",required=True,type=int)
+cliparser.add_argument("-w","--warning",dest="warning",metavar="VALUE",help="warning temperature",required=True,type=int)
+cliparser.add_argument("-c","--critical",dest="critical",metavar="VALUE",help="critical temperature",required=True,type=int)
 cliparser.add_argument('--nvclockpath',metavar='VALUE',help='path to nvclock (default: /usr/bin/nvclock)',default='/usr/bin/nvclock', type=str)
 cliargs = cliparser.parse_args()