<p>Arthur Heymans has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27778">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">util/ectool: Print usage when no arguments are given<br><br>Change-Id: I40dbd2a51d018eb549e9b2fa4365b3e4f9355bff<br>Signed-off-by: Arthur Heymans <arthur@aheymans.xyz><br>---<br>M util/ectool/ectool.c<br>1 file changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/78/27778/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/util/ectool/ectool.c b/util/ectool/ectool.c</span><br><span>index be5a899..05a893c 100644</span><br><span>--- a/util/ectool/ectool.c</span><br><span>+++ b/util/ectool/ectool.c</span><br><span>@@ -90,6 +90,11 @@</span><br><span>               {0, 0, 0, 0}</span><br><span>         };</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+        if (argv[1] == NULL) {</span><br><span style="color: hsl(120, 100%, 40%);">+                print_usage(argv[0]);</span><br><span style="color: hsl(120, 100%, 40%);">+         exit(1);</span><br><span style="color: hsl(120, 100%, 40%);">+      }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  while ((opt = getopt_long(argc, argv, "vh?Vidqpw:z:",</span><br><span>                                long_options, &option_index)) != EOF) {</span><br><span>                switch (opt) {</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27778">change 27778</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27778"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I40dbd2a51d018eb549e9b2fa4365b3e4f9355bff </div>
<div style="display:none"> Gerrit-Change-Number: 27778 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Arthur Heymans <arthur@aheymans.xyz> </div>